﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
namespace Jemer.Domain.Entities
{
    //订单信息表
    public class OrderInfo
    {

        /// <summary>
        /// 主键标识
        /// </summary>
        [Key]
        [Required]
        [MaxLength(4)]
        public int OrderID { get; set; }

        /// <summary>
        /// 订单编号
        /// </summary>

        [Required]
        [MaxLength(50)]
        public string OrderNO { get; set; }

        /// <summary>
        /// 客户编号
        /// </summary>
        [Required]
        [MaxLength(4)]
        public int UserID { get; set; }

        /// <summary>
        /// 客户IP
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string UserIP { get; set; }

        /// <summary>
        /// 运费
        /// </summary>
        [Required]
        [MaxLength(8)]
        public decimal OrderSAndH { get; set; }

        /// <summary>
        /// 总价
        /// </summary>
        [Required]
        [MaxLength(8)]
        public decimal OrderTotalPrice { get; set; }

        /// <summary>
        /// 折扣
        /// </summary>
        [Required]
        [MaxLength(9)]
        public decimal Discount { get; set; }

        /// <summary>
        /// 订单状态
        /// </summary>
        [Required]
        [MaxLength(4)]
        public int OrderStatus { get; set; }

        /// <summary>
        /// 支付状态
        /// </summary>
        [Required]
        [MaxLength(4)]
        public int PaymentStatus { get; set; }

        /// <summary>
        /// 配送状态
        /// </summary>
        [Required]
        [MaxLength(4)]
        public int ShippingStatus { get; set; }

        /// <summary>
        /// 支付方式
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string PaymentMethod { get; set; }

        /// <summary>
        /// 配送地址编号
        /// </summary>
        [Required]
        [MaxLength(4)]
        public int AddressID { get; set; }

        /// <summary>
        /// 收货人信息
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string ConsigneeName { get; set; }

        /// <summary>
        /// 省
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string Province { get; set; }

        /// <summary>
        /// 市
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string City { get; set; }

        /// <summary>
        /// 区县
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string County { get; set; }

        /// <summary>
        /// 地址
        /// </summary>
        [Required]
        [MaxLength(200)]
        public string Address { get; set; }

        /// <summary>
        /// 邮编
        /// </summary>
        [Required]
        [MaxLength(10)]
        public string ZipCode { get; set; }

        /// <summary>
        /// 手机
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string MobilePhone { get; set; }

        /// <summary>
        /// 电话
        /// </summary>
        [Required]
        [MaxLength(20)]
        public string Phone { get; set; }

        /// <summary>
        /// 邮箱
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string Email { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Required]
        [MaxLength(8)]
        public DateTime CreateTime { get; set; }

        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(200)]
        public string Remark { get; set; }


    }
}

